package org.dromara.system.domain.bo.cparams;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class OrderPushBo {

    //订单ID
    private Long order_id;
    //币别
    private String currency;
    //金额
    private BigDecimal total;
    //ip
    private String ip;
    //平台订单号
    private String payment_id;
    //支付方式
    private String payment_type;
    //订单生成方式：1=包含订单跟商品，2=订单（不包含商品），3=商品（不包含订单）
    private String type;

    private String terminal_order_sn;
    //订单状态
    private String status;
    //订单来源
    private Origin origin;
    //送货信息
    private Address billing;
    //送货信息
    private Address shipping;

    @Data
    public static class Origin {
        //来源类型
        private String type;
        //来源名称
        private String source;
        public Origin(String type, String source) {
            this.type = type;
            this.source = source;
        }
    }

    @Data
    public static class Address {

        private String address_1;
        private String address_2;
        private String country;
        private String state;
        private String city;
        private String postcode;
        private String phone;
        private String email;
        private String last_name;
        private String first_name;
    }
}

